package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Permission;

public interface PermissionService {
    /**
     * @Author: 涵哥
     * @Date: 14:57 2021/1/19
     * @Parms [queryPageBean]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 对权限的动态维护-查询
     */

    PageResult findPage(QueryPageBean queryPageBean);

    /**
     * @Author: 涵哥
     * @Date: 16:14 2021/1/19
     * @Parms [permission]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 权限动态维护-新增
     */

    void add(Permission permission);


    /**
     * @Author: 涵哥
     * @Date: 16:14 2021/1/19
     * @Parms [permission]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 权限动态维护-根据id删除
     */

    void deleteById(Integer id);


    /**
     * @Author: 涵哥
     * @Date: 16:14 2021/1/19
     * @Parms
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 权限动态维护-编辑
     */
    void edit(Permission permission);

    /**
     * @Author: 涵哥
     * @Date: 17:55 2021/1/19
     * @Parms [id]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 编辑的数据回显-据id查询
     */
    Permission findById(Integer id);
}
